/**
 * @file TiltMonitor.h
 * @author  
 * @brief 倾角检测
 * @version 1.0
 * @date 2020-07-23
 * 
 * @copyright Copyright (c) 2020
 * 
 */

#pragma once
#include "data_struct/base/DataSet.h"
#include "deque"
#include <numeric> 
namespace behavior_controller
{
    class TiltMonitor
    {
        public:
            TiltMonitor(){};
            void run();
            void collecting_data();
            bool anti_shake();
        public:
            std::deque<double> accum_angle;
            double tilt_angle=0;
            double sum_angle=0;
            double time=0;
    };
    extern TiltMonitor tilt_monitor;// 对象 
}